import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;


public class LoadImageFromFile {
	
	
	/**
	 * http://docs.oracle.com/javase/tutorial/2d/images/loadimage.html
	 * 
	 * @param filename
	 * @return
	 */
	public static BufferedImage loadImage(String filename){
		BufferedImage img = null;
		try {
		    img = ImageIO.read(new File(filename));
		} catch (IOException e) {
		}
		
		return img;
		
	}

}
